home *** CD-ROM | disk | FTP | other *** search
- Path: howland.reston.ans.net!psinntp!psinntp!psinntp!psinntp!usenet
- From: grantp@usa.pipeline.com(Pete Grant)
- Newsgroups: comp.lang.c++
- Subject: Re: why use stream io ?
- Date: 23 Mar 1996 03:27:46 GMT
- Organization: Pipeline USA
- Message-ID: <4ivr3i$164@news1.h1.usa.pipeline.com>
- References: <CTB.96Mar22154718@yoda.natadm>
- NNTP-Posting-Host: 38.8.61.11
- X-PipeUser: grantp
- X-PipeHub: usa.pipeline.com
- X-PipeGCOS: (Pete Grant)
- X-Newsreader: Pipeline v3.5.0
-
- On Mar 22, 1996 23:47:17 in article <why use stream io ?>, 'ctb@yoda.natadm
- (Charles Booher)' wrote:
-
-
- >I am really trying to understand the uses of stream I/O.
- >
- >1. It creates enormous portability problems, linking problems.
- >
- >2. It creates segmentaion faults that are very difficult
- >to track down and correct.
- >
- I suspect that the segmentation faults are due to programmer error,
- unless you happen to have a buggy implementation. Iostream on
- all the platforms I use works flawlessly, although a bit slowly.
-
- >..[deleted].. I can see no valid reason to ever use the stream library,
- but
- >perhaps there is some great thing that it does that I am as of yet unaware
-
- >of. If there is some compelling reason to use the iostream library I
- would
- >like to know what it si. Until then I'm going to avoid using it.
- >
- To each his own. There are times when I also resort to stdio; however
- it is only when the situation in my estimation calls for it. For example,
- when I need to produce tabular reports to a line printer, printf is hard
- to beat in coding speed. The rest of the time I use iostreams for its
- type safety and object-oriented approach.
-
- >Has anyone gotten the vast, and otherwise very good ddd-1.4 going on a
- >Linux-elf system using g++ ?
- >
- No. I made an attempt to build it on a Solaris 2.3 but it errored off
- and I haven't had time to look into it. It's not the fault of iostreams,
- though :-).
-
- --
-
- Pete Grant
- Kalevi, Inc.
- Sofware Engineering
-